package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author AXiang
 * @create 2023/10/26 23:44
 **/
@Mapper
public interface UserMapper {

    @Select("select *from user where openid=#{openid}")
    User getByOpenid(String openid);

    void insert(User user);

   @Select("select *from user where id=#{id}")
    User getById(Long userId);
}
